using TaskKernel.Infrastructure;

namespace TaskKernel.Domain.Services.Mail
{
    public class DepartmentClaimMailrecipient : DepartmentMailRecipient
    {
        public DepartmentClaimMailrecipient(RecipientList recipients)
            : base(recipients)
        {
        }

        public override void AddDepartmentUsers(Task task)
        {
            if (task.Executor != null)
                Recipients.Add(task.Executor.Mail);
        }
    }
}